package com.yfp.device.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.device.domain.ImgResource;
import com.yfp.device.mapper.ImgResourceMapper;
import com.yfp.device.service.ImgResourceService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @description 针对表【img_resource(图片资源表)】的数据库操作Service实现
 * @createDate 2024-06-24 10:48:56
 */
@Service
public class ImgResourceServiceImpl extends ServiceImpl<ImgResourceMapper, ImgResource> implements ImgResourceService {

    @Resource
    private ImgResourceMapper imgResourceMapper;

    /**
     * 根据套餐id查询套餐图片
     *
     * @param thumbIds
     * @return
     */
    @Override
    public List<ImgResource> listByThumbIds(List<String> thumbIds) {
        return imgResourceMapper.selectBatchIds(thumbIds);
    }
}




